From: Florian Müllner Date: Wed, 11 Mar 2015 17:26:55 +0000 (+0100) Subject: calendar: Sync pointer after a message is removed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1517 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb73547acff9d7b42168bb43e3f46f62b65d6deb;p=gnome-shell.git calendar: Sync pointer after a message is removed If a different message ends up underneath the pointer at the end of the removal animation, it won't receive an enter event until the pointer is moved, and thus its hover state will not be correct. Fix it up manually with an explicit pointer sync. https://bugzilla.gnome.org/show_bug.cgi?id=746019 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 67b757db2..e85672011 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1360,15 +1360,18 @@ const MessageListSection = new Lang.Class({ this._messages.delete(message); - if (animate) + if (animate) { Tweener.addTween(obj.container, { scale_x: 0, scale_y: 0, time: MESSAGE_ANIMATION_TIME, transition: 'easeOutQuad', onComplete: function() { obj.container.destroy(); + global.sync_pointer(); }}); - else + } else { obj.container.destroy(); + global.sync_pointer(); + } }, clear: function() {